// src/api/auth.js
import request from './request';

// 用户注册
export const registerApi = async (email, password) => {
    return await request('POST', '/api/users/register', { email, password });
};

// 用户登录
export const loginApi = async (email, password) => {
    return await request('POST', '/api/users/login', { email, password });
};